package com.woniuxy.micropurchaseserver.purchaseordermsg.service.impl;

import com.woniuxy.micropurchaseserver.bean.PurchaseOrderBean;
import com.woniuxy.micropurchaseserver.purchaseordermsg.mapper.PurchaseOrderMapper;
import com.woniuxy.micropurchaseserver.purchaseordermsg.service.PurchaseOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PurchaseOrderServiceImpl implements PurchaseOrderService {
    @Resource
    private PurchaseOrderMapper purchaseOrderMapper;
    @Override
    public List<PurchaseOrderBean> findAllPurchaseOrder(PurchaseOrderBean purchaseOrderBean) {
        return purchaseOrderMapper.findAllPurchaseOrder(purchaseOrderBean);
    }

    @Override
    public Integer DeletePurchaseOrderById(Integer id) {
        return purchaseOrderMapper.DeletePurchaseOrderById(id);
    }

    @Override
    public Integer UpdatePurchaseOrder(PurchaseOrderBean purchaseOrderBean) {
        return purchaseOrderMapper.UpdatePurchaseOrder(purchaseOrderBean);
    }

    @Override
    public Long InsertPurchaseOrder(PurchaseOrderBean purchaseOrderBean) {
        return purchaseOrderMapper.InsertPurchaseOrder(purchaseOrderBean);
    }
}
